<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="css/edit.css"/>
<script src="js/edit.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
	<div id="all">
		<form action="UserServlet?action=edit" method="post" onsubmit="return check()">
				<table border="1" cellpadding="0" cellspacing="0">
    		<tr>
    			<td colspan="3">修改联系人</td>

    		</tr>
    		 <tr>
    		 	<input type="hidden" name="id" value="${u.getId()}"  />
    			<td>姓名<font size="" color="red">（*）</font></td>
    			<td>${u.getName()}</td>
				<td> <font id="namehint"></font> </td>
    		</tr>
    		<tr>
				<td>手机号：<font size="" color="red">（*）</font></td>
				<td><input type="text" id="phone" name="phone" value="${u.getPhone()}" placeholder="请输入手机号" onblur="checkphone()"/></td>
				<td><font color="red" id="phonehint"></font></td>
			</tr>
			<tr>
					<td>所在城市：<font size="" color="red">（*）</font></td>
					<td>
						<select name="city" id="city" onblur="checkcity()">
							<option value="${u.getAddress()}">${u.getAddress()}</option>
							<option value="深圳">深圳</option>
							<option value="广州">广州</option>
							<option value="赣江">赣江</option>
							<option value="珠海">珠海</option>
						</select>
					</td>
					<td><font size="" color="red" id="cityhint"></font></td>
				</tr>

	
    		<tr>
    			<td><input type="submit" id="edit" name="" value="提交"/></td>
    			<td><input type="reset" value="重置" /></td>
				<td><input type="button" value="返回" onclick="javaScript:window.history.go(-1)"/></td>
    		</tr>

    		
    	</table>	

		</form>

		
	</div>
</body>
</html>